home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Apps / Graphics / Viewers / Magnify / Magnify.h < prev    next >
Text File  |  1992-12-25  |  2KB  |  85 lines

  1. /* File: Magnify.h - Application class for 'Magnify'
  2.  *
  3.  * By: Christopher Lane
  4.  * Symbolic Systems Resources Group
  5.  * Knowledge Systems Laboratory
  6.  * Stanford University
  7.  *
  8.  * Date: 9 January 1992
  9.  *
  10.  * Copyright: 1990, 1991 & 1992 by The Leland Stanford Junior University.
  11.  * This program may be distributed without restriction for non-commercial use.
  12.  */
  13.  
  14. #import <appkit/appkit.h>
  15.  
  16. #import "MagnifyView.h"
  17.  
  18. #define VERSION __DATE__
  19. #define APPLICATION "Magnify"
  20.  
  21. #define SCALEDEFAULTSTRING "Scale"
  22. #define DEFAULTSCALESTRING "4.0"
  23. #define DEFAULTSCALE ((float) 4.0)
  24.  
  25. #define GRIDDEFAULTSTRING "Grid"
  26. #define DEFAULTGRIDSTRING "-1.0"
  27. #define DEFAULTGRID ((float) -1.0) /* aka 'turned off' */
  28.  
  29. #define CURSORDEFAULTSTRING "Cursor"
  30. #define DEFAULTCURSORSTRING "No"
  31.  
  32. #define UPDATEDEFAULTSTRING "Update"
  33. #define DEFAULTUPDATESTRING "-1.0"
  34. #define DEFAULTUPDATE ((double) -1.0) /* aka 'turned off' */
  35.  
  36. #define FROZENMENUCELLTAG (1)
  37. #define FROZENMENUTITLE "Freeze"
  38. #define UNFROZENMENUTITLE "Unfreeze"
  39.  
  40. #define OFFSTRING "Off"
  41. #define YESSTRING "Yes"
  42.  
  43. #define HALF ((float) 0.5)
  44.  
  45. #define FLOAT "%f"
  46. #define DOUBLE "%F"
  47.  
  48. #define getDefault(s) NXGetDefaultValue(APPLICATION, s)
  49. #define registerDefaults(s) NXRegisterDefaults(APPLICATION, s)
  50.  
  51. @interface Magnify : Application
  52.     MagnifyView *view;
  53.     DPSTimedEntry timedEntry;
  54.     id scaleField, scaleSlider;
  55.     id gridField, gridSlider;
  56.     id updateField, updateSlider;
  57.     id cursorButton;
  58.     id version;
  59. }
  60.  
  61. + new;
  62.  
  63. - appDidInit:sender;
  64. - hide:sender;
  65. - unhide:sender;
  66. - free;
  67.  
  68. - changeScale:sender;
  69. - showScale:(float) scale andSlider:(BOOL) flag;
  70.  
  71. - changeGrid:sender;
  72. - showGrid:(float) grid andSlider:(BOOL) flag;
  73.  
  74. - changeUpdate:sender;
  75. - showUpdate:(double) update andSlider:(BOOL) flag;
  76.  
  77. - (MagnifyView *) getView;
  78. - setView:(MagnifyView *) anObject;
  79.  
  80. - setVersion:anObject;
  81. - (int) msgVersion:(const char **) aString ok:(int *) flag;
  82.  
  83. @end
  84.